|
TfrxDBDataSet component The "TfrxDBDataSet" component-connector from the FastReport component palette is applied to the band in order to connect a table (or any other data source). This component plays a role of a messenger between the data source and the FastReport core. The component is responsible for records navigation and field reference. This allowed the FastReport core to be independent from any data access library. FastReport can simultaneously work both with "BDE," "IB_Objects" (with their non-standard realization, incompatible with TDataSet), and other libraries, as well as to receive data from a source, not connected with DB, for example, from an array or a file. TfrxDBDataSet component is intended for working with data sources, compatible with TDataSet (they are BDE, ADO, IBX and a great majority of other libraries). The "TfrxIBODataSet" component is intended for working with IB_Objects. The "TfrxUserDataSet" component works with other data sources (arrays, files, etc.). It is very easy to use the "TfrxDBDataSet" component. To connect it with the data source, you should set the "DataSet" property (which connects directly to a table or a query) or the "DataSource" property (which connects to the "TdataSource" component). Both ways of connection are equivalent, though the first one allows managing without the "TdataSource" component. To make the component (and the data connected to it) available in the report, data sources used in the report must be clearly specified. To do that, select the "Report|Data..." menu item in the "FastReport" designer, and then select the required sources in the opened window. 
|